from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'jenkins-servers', views.JenkinsServerViewSet)
router.register(r'projects', views.ProjectViewSet)
router.register(r'environments', views.EnvironmentViewSet)
router.register(r'jenkins-jobs', views.JenkinsJobViewSet)
router.register(r'jenkins-builds', views.JenkinsBuildViewSet)
router.register(r'jenkins-audit', views.JenkinsAuditViewSet)

urlpatterns = [
    path('', include(router.urls)),
]
